package cn.newstrength.lishuai.step;

import java.util.Map;

import cn.newstrength.wtdf.web.databus.DataContext;
import cn.newstrength.wtdf.web.exception.PAIException;
import cn.newstrength.wtdf.web.processor.Operation;
import cn.newstrength.wtdf.web.processor.OperationStep;
/**
 * Sample step
 * @author Xd
 *
 */
public class LSSampleStep implements OperationStep {

	@Override
	public int excute(Operation oper) throws PAIException {
		/*
		 * 获取数据总线
		 */
		DataContext dc = oper.getContext();
		/*
		 * 输出 Hello World
		 */
		dc.setTranStepResult(0, "SUCCESS", "Hello World!");
		/*
		 * 返回
		 */
		return 0;
	}

	@Override
	public int init(Map<String, String> arg0) {
		return 0;
	}

}
